export const KEY='goodsdata';
export var valueObj={goodsid:0,count:0};
export function setItem(value){
     var jsonstring=localStorage.getItem(KEY);
     jsonstring=jsonstring || '[]';
     var arr=JSON.parse(jsonstring);
     arr.push(value);
     localStorage.setItem(KEY,JSON.stringify(arr));
}
export function getItem(){
    var jsonstring=localStorage.getItem(KEY);
    jsonstring=jsonstring || '[]';
    return JSON.parse(jsonstring)
};
export function remoteItem(){

}